import request from '@/utils/request'

// 查询专栏讲师列表
export function listColumnTeacher(query) {
  return request({
    url: '/column/columnTeacher/list',
    method: 'get',
    params: query
  })
}

// 查询专栏讲师详细
export function getColumnTeacher(id) {
  return request({
    url: '/column/columnTeacher/' + id,
    method: 'get'
  })
}

// 新增专栏讲师
export function addColumnTeacher(data) {
  return request({
    url: '/column/columnTeacher',
    method: 'post',
    data: data
  })
}

// 修改专栏讲师
export function updateColumnTeacher(data) {
  return request({
    url: '/column/columnTeacher',
    method: 'put',
    data: data
  })
}

// 删除专栏讲师
export function delColumnTeacher(id) {
  return request({
    url: '/column/columnTeacher/' + id,
    method: 'delete'
  })
}
